package server;

import java.lang.reflect.Method;

public class TestMain {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        //这个类class的路径
//        String classPath = "F://Minicat//targe//classes//com//wxx//controller//TestController.class";
//
//        WxxClassLoade myClassLoader = new WxxClassLoade(classPath);
//        //类的全称
//        String packageNamePath = "com.wxx.controller.TestController";

//        //加载Log这个class文件
//        HttpServlet httpServlet = (HttpServlet) myClassLoader.loadClass(packageNamePath).newInstance();
//
//        //System.out.println(httpServlet.doPost());
//
////        //利用反射获取main方法
////        Method method = Log.getDeclaredMethod("main", String[].class);
////        Object object = Log.newInstance();
////        String[] arg = {"ad"};
////        method.invoke(object, (Object) arg);
//       httpServlet.print();
    }
}
